package com.liuyi.netty.im.test.lychat.controller;

import com.liuyi.netty.im.commons.codes.CodeConst;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Mr.Fmy
 * @since 2022/1/20
 */
public class CahtModel {

    @Data
    public static class SendMessage implements Serializable {

        @NotNull
        private Integer qps;

        @NotEmpty
        private String fromId;

        @NotEmpty
        private String sessionId;

        @NotNull
        private CodeConst.MsgType msgType;

        @NotNull
        private Object content;
    }
}
